package com.bwie.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 军哥
 * @version 1.0
 * @description: 商品实体类
 * @date 2024/11/14 16:28
 */

@Data
@TableName("tb_prod")
public class TbProd implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer prodId;

    private String prodName;
    private BigDecimal prodPrice;
    private Integer prodStock;
    private Integer prodStatus;

    private Integer userId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8", shape = JsonFormat.Shape.STRING)
    private Date createTime;
}
